package com.app.common.enums;

/**
 * @autor xiaoyu.fang
 * @date 2019/10/11 17:01
 */
public enum FrontlineEnum {

    FASHION(1, "流行"), NEW(2, "新款"), CHOICENESS(3, "精选");

    public int KEY;

    public String VALUE;

    FrontlineEnum(int key, String value) {
        this.KEY = key;
        this.VALUE = value;
    }

    public static FrontlineEnum getByKey(int KEY) {
        for (FrontlineEnum frontlineEnum : values()) {
            if (frontlineEnum.KEY == KEY) {
                return frontlineEnum;
            }
        }
        return null;
    }
}
